package com.gxa.user.recycling.service.impl;

import com.gxa.core.recycling.pojo.CommunityManage;
import com.gxa.core.recycling.service.impl.BaseServiceImpl;
import com.gxa.user.recycling.mapper.HomeMapper;
import com.gxa.user.recycling.service.HomePageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service("homePageService")
@Transactional(rollbackFor = {Throwable.class})
public class HomePageServiceImpl extends BaseServiceImpl<CommunityManage> implements HomePageService {
    @Resource
    HomeMapper homeMapper=null;

    @Override
    public List<Map> selectByHot() {
        List<Map> maps = homeMapper.selectByHot();
        return maps;
    }
}
